package cool.webstudy.admin.model.dto.user;

import cool.webstudy.admin.constant.enums.RoleEnum;
import lombok.Data;

import java.io.Serializable;
/** 
 * 
 * @author 莫振双
 * @date 2024/7/14 21:35
 * @description: 用户详细信息实体，仅用于token的payload
 */
@Data
public class UserDetailInfoDTO implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * @description: 表ID
     */
    private Long id;
    /**
     * @description: 业务主键
     */
    private String unCode;
    /**
     * @description: 账号
     */
    private String account;
    /**
     * @description: 用户名
     */
    private String username;
    /**
     * @description: 角色
     */
    private RoleEnum role;
    /**
     * @description: 来源IP
     */
    private String sourceIP;

}
